<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
  </head>

  <body>
    <p data-title="段落" data-title-id=1234565479>段落</p>
    <script>
      const $p = document.querySelector("p");
      console.log($p.dataset.title);
      console.log($p.dataset.titleId);
      $p.dataset.titleId = "1";
      $p.dataset.name = "李白";
      delete $p.dataset.title;
    </script>

  </body>

</html>